package com.kefu.robot.vo;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import cn.hutool.core.bean.BeanUtil;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import com.kefu.robot.model.RobotDocNode;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "多轮问题节点")
public class RobotDocNodeUpdateVo extends AbstractUpdateVo<RobotDocNode,String> {
	@NotEmpty
    @ApiModelProperty(value = "主键")
    private String nodeId;
    @ApiModelProperty(value = "节点名称")
    private String nodeName;
    @ApiModelProperty(value = "常见问题")
    private String faqId;
    @ApiModelProperty(value = "节点内容")
    private String nodeContent;
    @Override
    public RobotDocNode convert() {
        RobotDocNode info = BeanUtil.toBean(this, RobotDocNode.class);
        return info;
	}
}